function formatPhone(phone) {
	let phoneStr = phone.replace(/(\d{3})(\d{4})(\d{4})/, "$1****$3");
	return phoneStr
}

function formatDate(date) {
	var date = new Date(date);
	var YY = date.getFullYear() + '-';
	var MM = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-';
	var DD = (date.getDate() < 10 ? '0' + (date.getDate()) : date.getDate());
	return YY + MM + DD;
}

export default {
	formatPhone,
	formatDate
}